package com.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.gulimall.ware.entity.PurchaseEntity;
import com.gulimall.ware.vo.MergeVo;
import com.gulimall.ware.vo.PurchaseDoneVo;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author mxl
 * @email 3299686223@qq.com
 * @date 2022-08-08 15:54:01
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryUnreceivePage(Map<String, Object> params);

    /**
     * 合并采购单
     *
     * @param vo 合并id
     */
    void merge(MergeVo vo);

    /**
     * 采购人员领取采购单
     *
     * @param ids 采购单id
     * @return
     */
    void received(List<Long> ids);

    void done(PurchaseDoneVo vo) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException;
}


